// 适配 Nginx 反向代理
const baseUrl = process.env.VUE_APP_BASE_API === '/' ? '' : process.env.VUE_APP_BASE_API
const api = {
  state: {
    // Sql 监控
    sqlApi: baseUrl + '/admin/druid/index.html',
    // swagger
    swaggerApi: baseUrl + '/admin/doc.html',
    // job
    xxlJobApi: 'http://localhost:9003/xxl-job-admin',
    // 本地文件上传
    fileUploadApi: baseUrl + '/admin/localStorage',
    // 七牛云上传
    qiNiuUploadApi: baseUrl + '/admin/qiNiu/content',
    // 阿里云上传
    aliUploadApi: baseUrl + '/admin/ali/content',
    // 腾讯云上传
    tencentUploadApi: baseUrl + '/admin/tencent/content',
    // Nacos
    nacosApi: 'http://localhost:8848/nacos/index.html',
    // baseUrl，
    baseApi: baseUrl
  }
}

export default api
